import Vue from "vue"
import Vuex from "vuex"
import user from './modules/user'
import height from './modules/height'
import msg from './modules/msg'

Vue.use(Vuex)

export default new Vuex.Store({
  state: {
    height: 500,
    isHome: true,
    // 是否打开职称评审
    isJob: false
  },
  mutations: {
    resize (state, height) {
      state.height = height
    },
    setIsHome (state, yn) {
      state.isHome = yn
    }
  },
  actions: {},
  
  modules: {
    user,
    height,
    msg
  }
})
